﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.malls.ui {
    import org.aswing.*;
    import Display.MarketUI.*;
    import org.aswing.ext.*;
    import Display.GridlistUI.model.*;

    public class MallScrollingList extends TabbedMarketScrollingList {

        public function MallScrollingList(_arg1:Array, _arg2:Class, _arg3:int, _arg4:int=0, _arg5:int=2){
            super(_arg1, _arg2, _arg3, _arg4, _arg5);
        }
        override protected function makeData():void{
            var _local1:int = Math.min(numItems, m_data.length);
            m_model = new VectorListModel();
            var _local2:int;
            while (_local2 < _local1) {
                m_model.append(m_data[_local2]);
                m_curCount++;
                _local2++;
            };
            m_dataList = new GridList(m_model, m_cellFactory, m_columns, m_rows);
            m_scrollPane = new JScrollPane(m_dataList, JScrollPane.SCROLLBAR_NEVER, JScrollPane.SCROLLBAR_NEVER);
        }
        override public function removeListeners():void{
            var _local2:GenericCellModel;
            rightBtn.removeActionListener(moveRight);
            leftBtn.removeActionListener(moveLeft);
            var _local1:int;
            while (_local1 < this.m_curCount) {
                _local2 = (m_dataList.getCellByIndex(_local1) as GenericCellModel);
                _local2.removeListeners();
                _local1++;
            };
        }

    }
}//package Modules.malls.ui 
